package io.renren.dao;

import io.renren.entity.ShopcartEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.*;

/**
 * 
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-05-10 10:22:36
 */
@Mapper
public interface ShopcartDao extends BaseMapper<ShopcartEntity> {
    ShopcartEntity getProductInShopCart(@Param("userid")Integer userid, @Param("productid")Integer productid);

    List<ShopcartEntity> getShopCartInfoByUserId(@Param("userid")Integer userid);
}
